﻿using System.Collections;
using System.Reflection;

namespace Framework.Metadata
{
    public class ColumnPropertyMetadataFactory : PropertyMetadataFactory<ColumnPropertyMetadata>
    {
        public override bool CanHandleProperty(PropertyInfo propertyInfo)
        {
            return propertyInfo.PropertyType == typeof (string)
                   || !(typeof (IEnumerable).IsAssignableFrom(propertyInfo.PropertyType));
        }
    }
}